﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="EditMember.aspx.cs" Inherits="EditMember" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <asp:MultiView ID="_multiView" runat="server">
        <asp:View ID="_viewPrivatePage" runat="server">
            <table>
                <tr>
                    <td colspan="2">
                        <h3>Trang cá nhân</h3></td>
                </tr>
                <tr>
                    <td>
                        <img alt="change password" src="Images/changePass.gif" 
                            style="width: 48px; height: 48px" /></td>
                    <td>
                        <dx:ASPxHyperLink ID="_lnkChangePassword" runat="server" Text="Đổi mật khẩu" NavigateUrl="EditMember.aspx?action=PasswordChange"/>
                        <br />
                        <dx:ASPxLabel ID="ASPxLabel1" runat="server" 
                            Text="Bảo mật tốt hớn nếu đổi mật khẩu thường xuyên">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td>
                        <img alt="user info" src="Images/userInfo.gif" 
                            style="width: 48px; height: 48px" /></td>
                    <td>
                        <dx:ASPxHyperLink ID="_chkInfo" runat="server" Text="Thông tin tài khoản" NavigateUrl="EditMember.aspx?action=EditProfile"/>
                        <br />
                        <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Xem và cập nhật thông tin">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <a href="OrderDetail.aspx" > Xem các đơn hàng đã đặt</a>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <asp:Button ID="_btnCancel" runat="server" Text="Hủy" 
                            onclick="_btnCancel_Click" CssClass="Button">
                        </asp:Button>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="_viewChangePassword" runat="server">
            <table>
                <tr>
                    <td colspan="3">
                        <h3>Đổi mật khẩu</h3></td>
                </tr>
                <tr>
                    <td>
                        <p>Mật khẩu cũ</p></td>
                    <td>
                        <asp:TextBox ID="_txtPassword" runat="server" Width="170px">
                        </asp:TextBox>
                    </td>
                    <td >
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ErrorMessage="Nhập mặt khẩu" ControlToValidate="_txtPassword" 
                            ValidationGroup="Require1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>Mật khẩu mới</p></td>
                    <td>
                        <asp:TextBox ID="_txtNewPassword" runat="server" Width="170px" >
                        </asp:TextBox>
                    </td>
                    <td >
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ErrorMessage="*" ControlToValidate="_txtNewPassword" 
                            ValidationGroup="Require1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>Xác nhận mật khẩu mới</p></td>
                    <td>
                        <asp:TextBox ID="_txtNewPassword2" runat="server" Width="170px">
                        </asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ErrorMessage="Nhập lại mật khẩu mới" ControlToValidate="_txtNewPassword2" 
                            ValidationGroup="Require1">*</asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ErrorMessage="Chưa giống mật khẩu gốc" ControlToCompare="_txtNewPassword" 
                            ControlToValidate="_txtNewPassword2" ValidationGroup="Require1">*</asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td ></td>
                    <td >
                        <dx:ASPxCaptcha ID="_captchaChangePassword" runat="server" CodeLength="6" 
                            TabIndex="10">
                            <ValidationSettings ErrorText="Mã kiểm tra chưa đúng">
                            </ValidationSettings>
                            <RefreshButton Text="Hình khác">
                            </RefreshButton>
                            <ChallengeImage ForegroundColor="#000000">
                            </ChallengeImage>
                            <TextBox LabelText="Nhập các ký tự bên trên:" Position=Bottom />
                        </dx:ASPxCaptcha>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="3">
                        <dx:ASPxValidationSummary ID="ASPxValidationSummary1" runat="server" 
                            ValidationGroup="Require1">
                        </dx:ASPxValidationSummary>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="2">
                        <asp:Button ID="_btnOk2" runat="server" Text="Xác nhận" onclick="_btnOk2_Click" 
                            CssClass="Button" />
                        <asp:Button ID="_btnCancel2" runat="server" Text="Hủy" 
                            onclick="_btnCancel2_Click" CausesValidation="False" CssClass="Button" />
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="_viewUpdateInfo" runat="server">
            <table>
                <tr>
                    <td colspan="3">
                        <h3>Thông tin cá nhân</h3></td>
                </tr>
                <tr>
                    <td>
                        <p>Tên đăng nhập</p></td>
                    <td>
                        <asp:Label ID="_lblUsername" runat="server">
                        </asp:Label>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <p>Họ tên</p></td>
                    <td >
                        <asp:TextBox ID="_txtFullName" runat="server" Width="170px">
                        </asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ErrorMessage="Nhập họ tên" ControlToValidate="_txtFullName" 
                            ValidationGroup="Require2">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>Giới tính</p></td>
                    <td>
                        <dx:ASPxRadioButtonList ID="_radSex" runat="server" 
                            RepeatDirection="Horizontal" SelectedIndex="0" CssClass="FloatLeft">
                            <Items>
                                <dx:ListEditItem Text="Nam" Value="Male" Selected="True" />
                                <dx:ListEditItem Text="Nữ" Value="Female" />
                            </Items>
                        </dx:ASPxRadioButtonList>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <p>Ngày sinh</p></td>
                    <td>
                        <dx:ASPxDateEdit ID="_datBirthday" runat="server" CssClass="FloatLeft">
                        </dx:ASPxDateEdit>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <p>CMND</p></td>
                    <td>
                        <asp:TextBox ID="_txtIDNo" runat="server" Width="170px">
                        </asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ErrorMessage="Nhập CMND" ControlToValidate="_txtIDNo" 
                            ValidationGroup="Require2">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="_txtIDNo" ErrorMessage="CMND bao gồm 9 chữ số" 
                            ValidationExpression="\d{9}" ValidationGroup="Require2">*</asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>Email</p></td>
                    <td>
                        <asp:Label ID="_lblEmail" runat="server">
                        </asp:Label>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <p>Địa chỉ</p></td>
                    <td>
                        <asp:TextBox ID="_txtAddress" runat="server" Width="170px">
                        </asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ErrorMessage="Nhập địa chỉ" ControlToValidate="_txtAddress" 
                            ValidationGroup="Require2">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>Điện thoại</p></td>
                    <td>
                        <asp:TextBox ID="_txtPhoneNo" runat="server" Width="170px">
                        </asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                            ErrorMessage="Nhập điện thoại" ControlToValidate="_txtPhoneNo" 
                            ValidationGroup="Require2">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                            ControlToValidate="_txtPhoneNo" ErrorMessage="Bao gồm 10 - 11 chữ số" 
                            ValidationExpression="\d{10,11}" ValidationGroup="Require2">*</asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <dx:ASPxCaptcha ID="_captchaInfo" runat="server" CodeLength="6" TabIndex="10">
                            <ValidationSettings ErrorText="Mã kiểm tra chưa đúng">
                            </ValidationSettings>
                            <RefreshButton Text="Hình khác">
                            </RefreshButton>
                            <ChallengeImage ForegroundColor="#000000">
                            </ChallengeImage>
                            <TextBox LabelText="Nhập các ký tự bên trên:" Position=Bottom />
                        </dx:ASPxCaptcha>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="3">
                        <dx:ASPxValidationSummary ID="ASPxValidationSummary2" runat="server" 
                            ValidationGroup="Require2">
                        </dx:ASPxValidationSummary>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="2">
                        <asp:Button ID="_btnOk3" runat="server" Text="Xác nhận" 
                            onclick="_btnOk3_Click" CausesValidation="False" CssClass="Button" />
                        <asp:Button ID="_Cancel3" runat="server" Text="Hủy" 
                            onclick="_btnCancel2_Click" CausesValidation="False" CssClass="Button" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
    
</asp:Content>

<asp:Content ID="Content3" runat="server" contentplaceholderid="head">

</asp:Content>


